<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>6-1 Bootstrap中的插件</title>
    <link rel="stylesheet" href="./bootstrap-3.3.7/dist/css/bootstrap.min.css">
    <script src="jquery/jquery-3.4.1.min.js"></script>
    <script src="bootstrap-3.3.7/dist/js/bootstrap.min.js"></script>
</head>
<body>


<!--按钮层 begin-->
<button type="button" class="btn btn-primary btn-lg"
        data-toggle="modal" data-target="#myModal">
    弹窗
</button>

<button class="btn btn-danger btn-lg "  data-toggle="modal" data-target="#danger"> 这是测试按钮</button>

<div id="danger">
    这是一个内容
</div>

<!--按钮层 end-->


<!--Modal 弹窗层-->


<div class="modal fade" id="myModal">

    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span>&times;</span><span class="sr-only">关闭弹窗</span>
                </button>
                <h4 class="modal-title" id="myModalLabel">标题</h4>
            </div>

            <div class="modal-body">
                慕课网
            </div>
            <div class="modal-footer">
                <button type="button"  class="btn btn-default" data-dismiss="modal">关闭</button>
            <button type="button" class="btn btn-primary">保存</button>
            </div>

        </div>
    </div>

</div>


<!-- 弹窗层 end-->
</body>
</html>
